package org.jeecg.modules.wlhy.hyinsurance.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author Yangqf
 * @since 2023-05-21
 */
@Data
@Builder
@TableName("insurance_apply_record")
@ApiModel(value = "InsuranceApplyRecord对象", description = "")
public class InsuranceApplyRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("保险公司全称")
    @TableField("insurance_company")
    private String insuranceCompany;

    @ApiModelProperty("保险公司编码")
    @TableField("insurance_company_number")
    private String insuranceCompanyNumber;

    @ApiModelProperty("投保人id,即公司id")
    @TableField("applicant_id")
    private String applicantId;

    @ApiModelProperty("投保人名称，即公司名称")
    @TableField("applicant_name")
    private String applicantName;

    @ApiModelProperty("被保人id")
    @TableField("insured_id")
    private String insuredId;

    @ApiModelProperty("被保人名称，即货主名称")
    @TableField("insured_name")
    private String insuredName;

    @ApiModelProperty("投保时间")
    @TableField("apply_time")
    private LocalDateTime applyTime;

    @ApiModelProperty("投保的运单id")
    @TableField("shipping_id")
    private String shippingId;

    @ApiModelProperty("发票金额")
    @TableField("invoice_money")
    private String invoiceMoney;

    @ApiModelProperty("保单金额")
    @TableField("amt")
    private String amt;

    @ApiModelProperty("保单号")
    @TableField("insurance_policy")
    private String insurancePolicy;

    @ApiModelProperty("险种代码")
    @TableField("insurance_code")
    private String insuranceCode;

    @ApiModelProperty("险种名成")
    @TableField("insurance_name")
    private String insuranceName;

    @ApiModelProperty("启运时间")
    @TableField("effective_time")
    private LocalDateTime effectiveTime;

    @ApiModelProperty("预计到达时间")
    @TableField("terminal_time")
    private LocalDateTime terminalTime;

    @ApiModelProperty("生效标识 ，1生效， -1取消，  0未生效")
    @TableField("active_flag")
    private Integer activeFlag;

    @ApiModelProperty("支付状态 0 未支付， 1已支付 ， -1 支付失败")
    @TableField("pay_status")
    private Integer payStatus;

    @ApiModelProperty("支付通道")
    @TableField("pay_channel")
    private Integer payChannel;

    @ApiModelProperty("运单号")
    @TableField("shipping_num")
    private String shippingNum;

    @ApiModelProperty("保单PDF URL")
    @TableField("pdf_url")
    private String pdfUrl;

}
